<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'accountCity.label', default: 'AccountCity')}"/>
    <title>新增城市</title>
</head>

<body class="fixed-navbar fixed-sidebar">

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right navFloatRight">
                <ol class="hbreadcrumb breadcrumb">
                    <li>CINDATA PLS</li>
                    <li class="active">
                        <span>机构管理</span>
                    </li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                开通城市
            </h2>
        </div>
    </div>

</div>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hgreen">
            <div class="panel-heading">
                新增城市
            </div>

            <div class="panel-body">
                <g:if test="${flash.message}">
                    <div class="message" role="status">${flash.message}</div>
                </g:if>
                <g:hasErrors bean="${this.accountCity}">
                    <ul class="errors" role="alert">
                        <g:eachError bean="${this.accountCity}" var="error">
                            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                    error="${error}"/></li>
                        </g:eachError>
                    </ul>
                </g:hasErrors>
                <g:form action="save" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-md-3 control-label">机构名称：</label>

                        <div class="col-md-3">
                            <span class="cont">${params.account?.name}</span>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">城市名称：</label>

                        <div class="col-md-3">
                            <g:textField name="accountId" required="" id="accountId" value="${params.account?.id}" class="hide"/>
                            <g:select class="form-control" name="cityId" id="cityId"
                                      from="${params?.cityList}"
                                      valueMessagePrefix="status" optionKey="id" optionValue="name" />
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-md-3">
                            <g:submitButton name="create" class="btn btn-info" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>

</div>

</body>
</html>
